#include "FreLib.h"

typedef union Float_Transform_uint8 // 联合体（转换float和uint8） 
{
    float Data_Use;
    uint8_t Data_Com[4];
} f_u8,u8_f;


uint8_t My_CalCheckSum (uint8_t *Data, uint8_t Len)  // 计算校验和
{
    uint8_t CheckSum = 0;

    for(uint8_t i = 0; i<Len; i++)
        CheckSum += Data[i];

    return CheckSum;
}



